package com.nt.train.controller;

import com.nt.train.service.ListService;
import com.nt.train.utils.ResultUtil;
import com.nt.train.vo.ResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * http://t.zoukankan.com/felordcn-p-12142540.html
 * 自定义条件处理
 * @author hlf
 * @version 1.0
 * @date 2022/8/4 10:47
 */
@RestController
@RequestMapping("/conditional")
public class ConditionalController {

//    @Resource
//    private ListService listService ;
//
//    @Autowired
//    private Environment environment;
//
//    @RequestMapping("/test")
//    public ResponseVO sayHello(){
//        System.out.println(environment.getProperty("os.name"));
//        return ResultUtil.success("成功",listService.showListCmd());
//    }
}
